<template>
    <h3>ComponentA</h3>
    <ComponentB :title="title" :names="names"/>
</template>

<script>
import ComponentB from "./componentB.vue"
export default {
    data() {
        return {
            title:"标题文本",
            age:26,
            names:["小华","小刚"]
        }
    },
    components:{
        ComponentB
    }
}
</script>